﻿<?php
define('__ROOT__', dirname(__FILE__)); 
define('_SRC_', __ROOT__."/src"); 

define('DB_HOST', "localhost"); 
define('DB_NAME', "asiatec"); 
define('DB_USER', "root"); 
define('DB_PWD', ""); 

class DbUtils{
 
	 public static function execute($sql){
		$con = mysql_connect(DB_HOST, DB_USER, DB_PWD);
		if (!$con){
			die('Could not connect: ' . mysql_error());
		}
		
		mysql_select_db(DB_NAME, $con);	
		$result = mysql_query($sql);
		mysql_close($con);
		return $result;
	 }
}
?>